From: Keith F. <Kei...@pn...> - 2009-03-20 21:12:06
|
Agreed, it wouldn¹t be courteous to request the data from Google multiple times for the same location. I guess what I was hoping for was a means of acquiring the lat/lng from Google if it was missing, and then turning it into a Property of the appropriate type, and then storing the property with the original record. Then subsequent attempts to map the record would use the (stored) property. On 3/20/09 2:05 PM, "Sergey Chernyshev" <ser...@gm...> wrote: > I would not recommend to do it on the fly simply because you don't want to run > requests to Google service every time some data in the query changes - it's > better to just simply augment pages with coordinates in your original > documents, after all, if address didn't change, coordinates didn't either, > right? > > Sergey > > > -- > Sergey Chernyshev > http://www.sergeychernyshev.com/ > > > 2009/3/20 Thomas Fellows <tho...@gm...> >> Oops: >> >> I'm not sure if there is a way to geocode through an ask query (e.g., geocode >> a list of results on the fly). If someone has an idea on how to do this, I'd >> be interested! The way I understand to do it is the first method of adding >> the property. >> >> Hope this helps a little >> >> -tom >> >> On Fri, Mar 20, 2009 at 8:28 AM, Thomas Fellows <tho...@gm...> >> wrote: >>> hey keith, >>> >>> first, things to look at: >>> >>> http://www.mediawiki.org/wiki/Extension:Google_Geocoder >>> http://www.mediawiki.org/wiki/Extension:Semantic_Google_Maps#Geocoding_addre >>> sses >>> >>> There are two ways to do it - if your imported data is displayed using a >>> template, you can create the geographic coordinate property by adding to the >>> template something like [[Has coordinate::{{{Street Address}}}]] (or if it's >>> separated [[Has coordinate::{{{Street Address}}}, {{{City}}}, {{{State}}}]] >>> etc. -- wait for everything to refresh and your data should now have a >>> property. >>> >>> the more "on the fly" way of doing it (from the site above) - >>> "{{#semantic_google_map:{{#geocode:{{{Street address}}}, {{{City}}}, >>> {{{State}}}, {{{Country}}}}}}}" >>> >>> >>> I'm not sure if there is a way to geocode q >>> >>> >>> 2009/3/19 Keith Fligg <Kei...@pn...> >>>> I¹ve got several thousand pages that we imported into our MediaWiki that >>>> each contain a Location¹ property of type string. We would like to be >>>> able to use the Google geocoder to lookup the coordinates of that property, >>>> and then use those coordinates to display the locations using the >>>> SemanticGoogleMaps extension. All of this within an ask query. >>>> >>>> The issue is that SemanticGoogleMaps is looking for a property of type >>>> Geographic coordinate¹ and we don¹t have that information in our imported >>>> documents. If there were some way to generate that property on the fly >>>> during the ask query, and feed it into the map, it would save us the >>>> trouble of having to process, and reimport the data. >>>> >>>> It seems like someone must have butt up against the problem in the past, we >>>> just can¹t find any reference to a solution. Does anyone have any idea of >>>> how we might be able to get this done? >>>> >>>> Thanks for any help, >>>> >>>> - Keith >>>> >>>> --------------------------------------------------------------------------- >>>> --- >>>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>>> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >>>> software that enables intelligent coding and step-through debugging. >>>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>>> _______________________________________________ >>>> Semediawiki-user mailing list >>>> Sem...@li... >>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>> >>> >> >> >> ----------------------------------------------------------------------------->> - >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> > > |