Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8165] MobileWeb: Ti.Geolocation.forwardGeocoder() not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-21T15:24:39.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsMobileWeb
Labelsmw-list
ReporterTony Lukasavage
AssigneeChris Barber
Created2012-03-21T13:59:47.000+0000
Updated2017-03-14T18:12:05.000+0000

Description

Affects 2.0.0.v20120321134756

Problem

As the title states, I can get Ti.Geolocation.forwardGeocoder() to work under no circumstances on any platforms. All errors indicate "Not Found". This does not mean that the specified location cannot be found, as I've tried many. I believe that it is occurring because the underlying URL seems to be looking for
api.appcelerator.com
when it should be looking for
api.appcelerator.net

Test Case

This will give "not Found" errors on all platforms
var win = Ti.UI.createWindow({
	backgroundColor: '#fff',
	fullscreen: false,
	exitOnClose: true
});

Ti.Geolocation.forwardGeocoder('Paris, France', function(e) {
	if (Ti.Platform.osname === 'mobileweb') {
		console.log(e);
	} else {
		Ti.API.info(e);
	}
});

win.open();

Proposed Solution

make the service use the domain api.appcelerator.net, not api.appcelerator.com

Comments

  1. Neeraj Gupta 2012-03-21

    We need to change api.appcelerator.com to api.appcelerator.net.
  2. Tony Lukasavage 2012-03-21

    I see this was changed to Mobilweb, but just to be clear, it seems to affect all platforms. For some reason \*.appcelerator.com now redirects to \*.appcelerator.org. Is this perhaps the source of this problem, and perhaps others?
  3. Neeraj Gupta 2012-03-21

    We have scanned the code and we use "api.appcelerator.net" in both iOS and Android platforms.
  4. Bryan Hughes 2012-03-21

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1785
  5. Bryan Hughes 2012-03-21

    Side Note: Ti.API.log works on mobile web, no need to case it out.
  6. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source